Hacking Random Header and Freshy Theme so they play nicely together
30 12 2006First you can make some header images that are 780px by 200px and upload them to your theme’s images/ directory. Then hack the code in two files. Yes it is a bit of a hack, but here goes (changes are in red):
In plugins/randomheader.php:
function randomheader() {
$rh_images = get_option('randomheader_images');
$rh_options = get_option('randomheader_options');
if ( count($rh_images)>0 ){
printf('<style type="text/css">#%1$s {background-image:url(%2$s);background-repeat:no-repeat;background-position:center 75px;}</style>',
$rh_options['header_id'],$rh_images[array_rand($rh_images)]);
}
}
In themes/freshy-10/functions.php:
#title_image {
margin:0;
text-align:left;
display:block;
height:200px;
<?php
if ($freshy_options['header_bg_custom']=='') { ?>





